<?php

/**
 * @version $Id$
 * @package
 * @author Alexander Anokhin <ava@vaz.ru>
 */
class PersonDocs extends Zend_Db_Table
{
	protected $_name = 'person_doc';
	protected $_primary = array('person_id', 'doc_id');
	
	protected $_referenceMap = array(
        'Person' => array(
            'columns'           => 'person_id',
            'refTableClass'     => 'Persons',
            'refColumns'        => 'person_id'
            )
            
        ,'Document' => array(
            'columns'           => 'doc_id',
            'refTableClass'     => 'Documents',
            'refColumns'        => 'doc_id'
        )
        
	);
	
	
}
